type ToArray<T> = T extends any ? T[] : never

// type StrArrOrNumArr = string[] | number[]

// type StrArrOrNumArr = ToArray<string | number>

// let saon: StrArrOrNumArr = []

// type StrArrOrNumArr = (string | number)[]
type ToArrayNonDist<T> = [T] extends [any] ? T[] :never

type StrArrOrNumArr = ToArrayNonDist<string | number>

let saon: StrArrOrNumArr = ['1',1]